import com.demo.service.AccountService;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.PropertySource;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;

/**
 * @ClassName Demo
 * @Description TODO
 * @Author Windy
 * @Date 2022/9/1 9:50
 * @Version 1.0
 **/
@RunWith(SpringJUnit4ClassRunner.class)
@ContextConfiguration(locations="classpath:bean.xml")
public class Demo {
    @Autowired
    AccountService accountService;

    @Test
    public void testAnn(){
        accountService.transfer("eric","james",100.0);
    }
}
